import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-drag',
  templateUrl: './drag.component.html',
  styleUrls: ['./drag.component.less'],
})
export class DragComponent implements OnInit {
  dragCurrentDirect: string; //用于判断拖拽的是否是有效的目标
  menuContent = [
    {
      groupName: 'A组',
      dateArr: [
        {
          week: '星期一',
          date: '11月4日',
          etc: [
            {
              direct: 'C#',
              detail: [
                {
                  time: '8:00',
                  name: '张1',
                  sapId: '001',
                  direct: 'C#',
                  boxId: '1',
                },
                {
                  time: '8:00',
                  name: '张2',
                  sapId: '002',
                  direct: 'C#',
                  boxId: '2',
                },
                {
                  time: '8:40',
                  name: '张3',
                  sapId: '003',
                  direct: 'C#',
                  boxId: '3',
                },
                {
                  time: '9:00',
                  name: '张4',
                  sapId: '004',
                  direct: 'C#',
                  boxId: '4',
                },
                {
                  time: '9:20',
                  name: '张5',
                  sapId: '005',
                  direct: 'C#',
                  boxId: '5',
                },
                {
                  time: '9:40',
                  name: '张6',
                  sapId: '006',
                  direct: 'C#',
                  boxId: '6',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '10:00',
                  name: '王1',
                  sapId: '007',
                  direct: 'Java',
                  boxId: '7',
                },
                {
                  time: '10:20',
                  name: '王2',
                  sapId: '008',
                  direct: 'Java',
                  boxId: '8',
                },
                {
                  time: '11:00',
                  name: '王3',
                  sapId: '009',
                  direct: 'Java',
                  boxId: '9',
                },
                {
                  time: '11:20',
                  name: '王4',
                  sapId: '0010',
                  direct: 'Java',
                  boxId: '10',
                },
              ],
            },
            {
              direct: '前端',
              detail: [
                {
                  time: '13:40',
                  name: '刘1',
                  sapId: '0011',
                  direct: '前端',
                  boxId: '11',
                },
                {
                  time: '14:20',
                  name: '刘2',
                  sapId: '0012',
                  direct: '前端',
                  boxId: '12',
                },
                {
                  time: '14:40',
                  name: '刘3',
                  sapId: '0013',
                  direct: '前端',
                  boxId: '13',
                },
                {
                  time: '15:00',
                  name: '刘4',
                  sapId: '0014',
                  direct: '前端',
                  boxId: '14',
                },
                {
                  time: '15:20',
                  name: '刘5',
                  sapId: '0015',
                  direct: '前端',
                  boxId: '15',
                },
                {
                  time: '15:40',
                  name: '刘6',
                  sapId: '0016',
                  direct: '前端',
                  boxId: '16',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '16:00',
                  name: '周1',
                  sapId: '0011',
                  direct: 'Java',
                  boxId: '17',
                },
                {
                  time: '16:20',
                  name: '周2',
                  sapId: '0012',
                  direct: 'Java',
                  boxId: '18',
                },
                {
                  time: '16:40',
                  name: '周3',
                  sapId: '0013',
                  direct: 'Java',
                  boxId: '19',
                },
                {
                  time: '17:00',
                  name: '周4',
                  sapId: '0014',
                  direct: 'Java',
                  boxId: '20',
                },
              ],
            },
          ],
        },
        {
          week: '星期二',
          date: '11月5日',
          etc: [
            {
              direct: 'C#',
              detail: [
                {
                  time: '8:00',
                  name: '张111',
                  sapId: '0035',
                  direct: 'C#',
                  boxId: '21',
                },
                {
                  time: '8:00',
                  name: '张112',
                  sapId: '0036',
                  direct: 'C#',
                  boxId: '22',
                },
                {
                  time: '8:40',
                  name: '张113',
                  sapId: '0037',
                  direct: 'C#',
                  boxId: '23',
                },
                {
                  time: '9:00',
                  name: '张114',
                  sapId: '0038',
                  direct: 'C#',
                  boxId: '24',
                },
                {
                  time: '9:20',
                  name: '张115',
                  sapId: '0039',
                  direct: 'C#',
                  boxId: '25',
                },
                {
                  time: '9:40',
                  name: '张116',
                  sapId: '0040',
                  direct: 'C#',
                  boxId: '26',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '10:00',
                  name: '王111',
                  sapId: '0041',
                  direct: 'Java',
                  boxId: '27',
                },
                {
                  time: '10:20',
                  name: '王112',
                  sapId: '0042',
                  direct: 'Java',
                  boxId: '28',
                },
                {
                  time: '11:00',
                  name: '王113',
                  sapId: '0043',
                  direct: 'Java',
                  boxId: '29',
                },
                {
                  time: '11:20',
                  name: '王114',
                  sapId: '0044',
                  direct: 'Java',
                  boxId: '30',
                },
              ],
            },
            {
              direct: '前端',
              detail: [
                {
                  time: '13:40',
                  name: '刘111',
                  sapId: '0045',
                  direct: '前端',
                  boxId: '31',
                },
                {
                  time: '14:20',
                  name: '刘112',
                  sapId: '0046',
                  direct: '前端',
                  boxId: '32',
                },
                {
                  time: '14:40',
                  name: '刘113',
                  sapId: '0047',
                  direct: '前端',
                  boxId: '33',
                },
                {
                  time: '15:00',
                  name: '刘114',
                  sapId: '0048',
                  direct: '前端',
                  boxId: '34',
                },
                {
                  time: '15:20',
                  name: '刘115',
                  sapId: '0049',
                  direct: '前端',
                  boxId: '35',
                },
                {
                  time: '15:40',
                  name: '刘116',
                  sapId: '0050',
                  direct: '前端',
                  boxId: '36',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '16:00',
                  name: '周111',
                  sapId: '0051',
                  direct: 'Java',
                  boxId: '37',
                },
                {
                  time: '16:20',
                  name: '周112',
                  sapId: '0052',
                  direct: 'Java',
                  boxId: '38',
                },
                {
                  time: '16:40',
                  name: '周113',
                  sapId: '0053',
                  direct: 'Java',
                  boxId: '39',
                },
                {
                  time: '17:00',
                  name: '周114',
                  sapId: '0054',
                  direct: 'Java',
                  boxId: '40',
                },
              ],
            },
          ],
        },
        {
          week: '星期四',
          date: '11月7日',
          etc: [
            {
              direct: 'C#',
              detail: [
                {
                  time: '8:00',
                  name: '张1111',
                  sapId: '0075',
                  direct: 'C#',
                  boxId: '41',
                },
                {
                  time: '8:00',
                  name: '张1112',
                  sapId: '0076',
                  direct: 'C#',
                  boxId: '42',
                },
                {
                  time: '8:40',
                  name: '张1113',
                  sapId: '0077',
                  direct: 'C#',
                  boxId: '43',
                },
                {
                  time: '9:00',
                  name: '张1114',
                  sapId: '0078',
                  direct: 'C#',
                  boxId: '44',
                },
                {
                  time: '9:20',
                  name: '张1115',
                  sapId: '0079',
                  direct: 'C#',
                  boxId: '45',
                },
                {
                  time: '9:40',
                  name: '张1116',
                  sapId: '0080',
                  direct: 'C#',
                  boxId: '46',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '10:00',
                  name: '王1111',
                  sapId: '0081',
                  direct: 'Java',
                  boxId: '47',
                },
                {
                  time: '10:20',
                  name: '王1112',
                  sapId: '0082',
                  direct: 'Java',
                  boxId: '48',
                },
                {
                  time: '11:00',
                  name: '王1113',
                  sapId: '0083',
                  direct: 'Java',
                  boxId: '49',
                },
                {
                  time: '11:20',
                  name: '王1114',
                  sapId: '0084',
                  direct: 'Java',
                  boxId: '50',
                },
              ],
            },
            {
              direct: '前端',
              detail: [
                {
                  time: '13:40',
                  name: '刘1111',
                  sapId: '0085',
                  direct: '前端',
                  boxId: '51',
                },
                {
                  time: '14:20',
                  name: '刘1112',
                  sapId: '0086',
                  direct: '前端',
                  boxId: '52',
                },
                {
                  time: '14:40',
                  name: '刘1113',
                  sapId: '0087',
                  direct: '前端',
                  boxId: '53',
                },
                {
                  time: '15:00',
                  name: '刘1114',
                  sapId: '0088',
                  direct: '前端',
                  boxId: '54',
                },
                {
                  time: '15:20',
                  name: '刘1115',
                  sapId: '0089',
                  direct: '前端',
                  boxId: '55',
                },
                {
                  time: '15:40',
                  name: '刘1116',
                  sapId: '0090',
                  direct: '前端',
                  boxId: '56',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '16:00',
                  name: '周1111',
                  sapId: '0091',
                  direct: 'Java',
                  boxId: '57',
                },
                {
                  time: '16:20',
                  name: '周1112',
                  sapId: '0092',
                  direct: 'Java',
                  boxId: '58',
                },
                {
                  time: '16:40',
                  name: '周1113',
                  sapId: '0093',
                  direct: 'Java',
                  boxId: '59',
                },
                {
                  time: '17:00',
                  name: '周1114',
                  sapId: '0094',
                  direct: 'Java',
                  boxId: '60',
                },
              ],
            },
          ],
        },
        {
          week: '星期五',
          date: '11月8日',
          etc: [
            {
              direct: 'C#',
              detail: [
                {
                  time: '8:00',
                  name: '张11111',
                  sapId: '00205',
                  direct: 'C#',
                  boxId: '61',
                },
                {
                  time: '8:00',
                  name: '张11112',
                  sapId: '00206',
                  direct: 'C#',
                  boxId: '62',
                },
                {
                  time: '8:40',
                  name: '张11113',
                  sapId: '00207',
                  direct: 'C#',
                  boxId: '63',
                },
                {
                  time: '9:00',
                  name: '张11114',
                  sapId: '00208',
                  direct: 'C#',
                  boxId: '64',
                },
                {
                  time: '9:20',
                  name: '张11115',
                  sapId: '00209',
                  direct: 'C#',
                  boxId: '65',
                },
                {
                  time: '9:40',
                  name: '张11116',
                  sapId: '00210',
                  direct: 'C#',
                  boxId: '66',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '10:00',
                  name: '王11111',
                  sapId: '00211',
                  direct: 'Java',
                  boxId: '67',
                },
                {
                  time: '10:20',
                  name: '王11112',
                  sapId: '00212',
                  direct: 'Java',
                  boxId: '68',
                },
                {
                  time: '11:00',
                  name: '王11113',
                  sapId: '00213',
                  direct: 'Java',
                  boxId: '69',
                },
                {
                  time: '11:20',
                  name: '王11114',
                  sapId: '00214',
                  direct: 'Java',
                  boxId: '70',
                },
              ],
            },
            {
              direct: '前端',
              detail: [
                {
                  time: '13:40',
                  name: '刘11111',
                  sapId: '00215',
                  direct: '前端',
                  boxId: '71',
                },
                {
                  time: '14:20',
                  name: '刘11112',
                  sapId: '00216',
                  direct: '前端',
                  boxId: '72',
                },
                {
                  time: '14:40',
                  name: '刘11113',
                  sapId: '00217',
                  direct: '前端',
                  boxId: '73',
                },
                {
                  time: '15:00',
                  name: '刘11114',
                  sapId: '00218',
                  direct: '前端',
                  boxId: '74',
                },
                {
                  time: '15:20',
                  name: '刘11115',
                  sapId: '00219',
                  direct: '前端',
                  boxId: '75',
                },
                {
                  time: '15:40',
                  name: '刘11116',
                  sapId: '00220',
                  direct: '前端',
                  boxId: '76',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '16:00',
                  name: '周11111',
                  sapId: '00221',
                  direct: 'Java',
                  boxId: '77',
                },
                {
                  time: '16:20',
                  name: '周11112',
                  sapId: '00222',
                  direct: 'Java',
                  boxId: '78',
                },
                {
                  time: '16:40',
                  name: '周11113',
                  sapId: '00223',
                  direct: 'Java',
                  boxId: '79',
                },
                {
                  time: '17:00',
                  name: '周11114',
                  sapId: '00224',
                  direct: 'Java',
                  boxId: '80',
                },
              ],
            },
          ],
        },
      ],
    },
    {
      groupName: 'B组',
      dateArr: [
        {
          week: '星期一',
          date: '11月4日',
          etc: [
            {
              direct: 'C#',
              detail: [
                {
                  time: '8:00',
                  name: '',
                  sapId: '',
                  direct: 'C#',
                  boxId: '81',
                },
                {
                  time: '8:00',
                  name: '',
                  sapId: '',
                  direct: 'C#',
                  boxId: '82',
                },
                {
                  time: '8:40',
                  name: '张13',
                  sapId: '0017',
                  direct: 'C#',
                  boxId: '83',
                },
                {
                  time: '9:00',
                  name: '张14',
                  sapId: '0018',
                  direct: 'C#',
                  boxId: '84',
                },
                {
                  time: '9:20',
                  name: '张15',
                  sapId: '0019',
                  direct: 'C#',
                  boxId: '85',
                },
                {
                  time: '9:40',
                  name: '张16',
                  sapId: '0020',
                  direct: 'C#',
                  boxId: '86',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '10:00',
                  name: '王11',
                  sapId: '0021',
                  direct: 'Java',
                  boxId: '87',
                },
                {
                  time: '10:20',
                  name: '王12',
                  sapId: '0022',
                  direct: 'Java',
                  boxId: '88',
                },
                {
                  time: '11:00',
                  name: '王13',
                  sapId: '0023',
                  direct: 'Java',
                  boxId: '89',
                },
                {
                  time: '11:20',
                  name: '王14',
                  sapId: '0024',
                  direct: 'Java',
                  boxId: '90',
                },
              ],
            },
            {
              direct: '前端',
              detail: [
                {
                  time: '13:40',
                  name: '刘11',
                  sapId: '0025',
                  direct: '前端',
                  boxId: '91',
                },
                {
                  time: '14:20',
                  name: '刘12',
                  sapId: '0026',
                  direct: '前端',
                  boxId: '92',
                },
                {
                  time: '14:40',
                  name: '刘13',
                  sapId: '0027',
                  direct: '前端',
                  boxId: '93',
                },
                {
                  time: '15:00',
                  name: '刘14',
                  sapId: '0028',
                  direct: '前端',
                  boxId: '94',
                },
                {
                  time: '15:20',
                  name: '刘15',
                  sapId: '0029',
                  direct: '前端',
                  boxId: '95',
                },
                {
                  time: '15:40',
                  name: '刘16',
                  sapId: '0030',
                  direct: '前端',
                  boxId: '96',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '16:00',
                  name: '周11',
                  sapId: '0031',
                  direct: 'Java',
                  boxId: '97',
                },
                {
                  time: '16:20',
                  name: '',
                  sapId: '',
                  direct: 'Java',
                  boxId: '98',
                },
                {
                  time: '16:40',
                  name: '周13',
                  sapId: '0033',
                  direct: 'Java',
                  boxId: '99',
                },
                {
                  time: '17:00',
                  name: '周14',
                  sapId: '0034',
                  direct: 'Java',
                  boxId: '100',
                },
              ],
            },
          ],
        },
        {
          week: '星期二',
          date: '11月5日',
          etc: [
            {
              direct: 'C#',
              detail: [
                {
                  time: '8:00',
                  name: '张1111',
                  sapId: '0055',
                  direct: 'C#',
                  boxId: '101',
                },
                {
                  time: '8:00',
                  name: '张1112',
                  sapId: '0056',
                  direct: 'C#',
                  boxId: '102',
                },
                {
                  time: '8:40',
                  name: '张1113',
                  sapId: '0057',
                  direct: 'C#',
                  boxId: '103',
                },
                {
                  time: '9:00',
                  name: '张1114',
                  sapId: '0058',
                  direct: 'C#',
                  boxId: '104',
                },
                {
                  time: '9:20',
                  name: '张1115',
                  sapId: '0059',
                  direct: 'C#',
                  boxId: '105',
                },
                {
                  time: '9:40',
                  name: '张1116',
                  sapId: '0060',
                  direct: 'C#',
                  boxId: '106',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '10:00',
                  name: '王1111',
                  sapId: '0061',
                  direct: 'Java',
                  boxId: '107',
                },
                {
                  time: '10:20',
                  name: '王1112',
                  sapId: '0062',
                  direct: 'Java',
                  boxId: '108',
                },
                {
                  time: '11:00',
                  name: '王1113',
                  sapId: '0063',
                  direct: 'Java',
                  boxId: '109',
                },
                {
                  time: '11:20',
                  name: '王1114',
                  sapId: '0064',
                  direct: 'Java',
                  boxId: '110',
                },
              ],
            },
            {
              direct: '前端',
              detail: [
                {
                  time: '13:40',
                  name: '刘1111',
                  sapId: '0065',
                  direct: '前端',
                  boxId: '111',
                },
                {
                  time: '14:20',
                  name: '刘1112',
                  sapId: '0066',
                  direct: '前端',
                  boxId: '112',
                },
                {
                  time: '14:40',
                  name: '刘1113',
                  sapId: '0067',
                  direct: '前端',
                  boxId: '113',
                },
                {
                  time: '15:00',
                  name: '刘1114',
                  sapId: '0068',
                  direct: '前端',
                  boxId: '114',
                },
                {
                  time: '15:20',
                  name: '刘1115',
                  sapId: '0069',
                  direct: '前端',
                  boxId: '115',
                },
                {
                  time: '15:40',
                  name: '刘1116',
                  sapId: '0070',
                  direct: '前端',
                  boxId: '116',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '16:00',
                  name: '周1111',
                  sapId: '0071',
                  direct: 'Java',
                  boxId: '117',
                },
                {
                  time: '16:20',
                  name: '周1112',
                  sapId: '0072',
                  direct: 'Java',
                  boxId: '118',
                },
                {
                  time: '16:40',
                  name: '周1113',
                  sapId: '0073',
                  direct: 'Java',
                  boxId: '119',
                },
                {
                  time: '17:00',
                  name: '周1114',
                  sapId: '0074',
                  direct: 'Java',
                  boxId: '120',
                },
              ],
            },
          ],
        },
        {
          week: '星期四',
          date: '11月7日',
          etc: [
            {
              direct: 'C#',
              detail: [
                {
                  time: '8:00',
                  name: '张11111',
                  sapId: '0095',
                  direct: 'C#',
                  boxId: '121',
                },
                {
                  time: '8:00',
                  name: '张11112',
                  sapId: '0096',
                  direct: 'C#',
                  boxId: '122',
                },
                {
                  time: '8:40',
                  name: '张11113',
                  sapId: '0097',
                  direct: 'C#',
                  boxId: '123',
                },
                {
                  time: '9:00',
                  name: '张11114',
                  sapId: '0098',
                  direct: 'C#',
                  boxId: '124',
                },
                {
                  time: '9:20',
                  name: '张11115',
                  sapId: '0099',
                  direct: 'C#',
                  boxId: '125',
                },
                {
                  time: '9:40',
                  name: '张11116',
                  sapId: '00100',
                  direct: 'C#',
                  boxId: '126',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '10:00',
                  name: '王11111',
                  sapId: '00101',
                  direct: 'Java',
                  boxId: '127',
                },
                {
                  time: '10:20',
                  name: '王11112',
                  sapId: '00102',
                  direct: 'Java',
                  boxId: '128',
                },
                {
                  time: '11:00',
                  name: '王11113',
                  sapId: '00103',
                  direct: 'Java',
                  boxId: '129',
                },
                {
                  time: '11:20',
                  name: '王11114',
                  sapId: '00104',
                  direct: 'Java',
                  boxId: '130',
                },
              ],
            },
            {
              direct: '前端',
              detail: [
                {
                  time: '13:40',
                  name: '刘11111',
                  sapId: '00105',
                  direct: '前端',
                  boxId: '131',
                },
                {
                  time: '14:20',
                  name: '刘11112',
                  sapId: '00106',
                  direct: '前端',
                  boxId: '132',
                },
                {
                  time: '14:40',
                  name: '刘11113',
                  sapId: '00107',
                  direct: '前端',
                  boxId: '133',
                },
                {
                  time: '15:00',
                  name: '刘11114',
                  sapId: '00108',
                  direct: '前端',
                  boxId: '134',
                },
                {
                  time: '15:20',
                  name: '刘11115',
                  sapId: '00109',
                  direct: '前端',
                  boxId: '135',
                },
                {
                  time: '15:40',
                  name: '刘11116',
                  sapId: '00200',
                  direct: '前端',
                  boxId: '136',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '16:00',
                  name: '周11111',
                  sapId: '00201',
                  direct: 'Java',
                  boxId: '137',
                },
                {
                  time: '16:20',
                  name: '周11112',
                  sapId: '00202',
                  direct: 'Java',
                  boxId: '138',
                },
                {
                  time: '16:40',
                  name: '周11113',
                  sapId: '00203',
                  direct: 'Java',
                  boxId: '139',
                },
                {
                  time: '17:00',
                  name: '周11114',
                  sapId: '00204',
                  direct: 'Java',
                  boxId: '140',
                },
              ],
            },
          ],
        },
        {
          week: '星期五',
          date: '11月8日',
          etc: [
            {
              direct: 'C#',
              detail: [
                {
                  time: '8:00',
                  name: '张111111',
                  sapId: '00225',
                  direct: 'C#',
                  boxId: '141',
                },
                {
                  time: '8:00',
                  name: '张111112',
                  sapId: '00226',
                  direct: 'C#',
                  boxId: '142',
                },
                {
                  time: '8:40',
                  name: '张111113',
                  sapId: '00227',
                  direct: 'C#',
                  boxId: '143',
                },
                {
                  time: '9:00',
                  name: '张111114',
                  sapId: '00228',
                  direct: 'C#',
                  boxId: '144',
                },
                {
                  time: '9:20',
                  name: '张111115',
                  sapId: '00229',
                  direct: 'C#',
                  boxId: '145',
                },
                {
                  time: '9:40',
                  name: '张111116',
                  sapId: '00230',
                  direct: 'C#',
                  boxId: '146',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '10:00',
                  name: '王111111',
                  sapId: '00231',
                  direct: 'Java',
                  boxId: '147',
                },
                {
                  time: '10:20',
                  name: '王111112',
                  sapId: '00232',
                  direct: 'Java',
                  boxId: '148',
                },
                {
                  time: '11:00',
                  name: '王111113',
                  sapId: '00233',
                  direct: 'Java',
                  boxId: '149',
                },
                {
                  time: '11:20',
                  name: '王111114',
                  sapId: '00234',
                  direct: 'Java',
                  boxId: '150',
                },
              ],
            },
            {
              direct: '前端',
              detail: [
                {
                  time: '13:40',
                  name: '刘111111',
                  sapId: '00235',
                  direct: '前端',
                  boxId: '151',
                },
                {
                  time: '14:20',
                  name: '刘111112',
                  sapId: '00236',
                  direct: '前端',
                  boxId: '152',
                },
                {
                  time: '14:40',
                  name: '刘111113',
                  sapId: '00237',
                  direct: '前端',
                  boxId: '153',
                },
                {
                  time: '15:00',
                  name: '刘111114',
                  sapId: '00238',
                  direct: '前端',
                  boxId: '154',
                },
                {
                  time: '15:20',
                  name: '刘111115',
                  sapId: '00239',
                  direct: '前端',
                  boxId: '155',
                },
                {
                  time: '15:40',
                  name: '刘111116',
                  sapId: '00240',
                  direct: '前端',
                  boxId: '156',
                },
              ],
            },
            {
              direct: 'Java',
              detail: [
                {
                  time: '16:00',
                  name: '周111111',
                  sapId: '00241',
                  direct: 'Java',
                  boxId: '157',
                },
                {
                  time: '16:20',
                  name: '周111112',
                  sapId: '00242',
                  direct: 'Java',
                  boxId: '158',
                },
                {
                  time: '16:40',
                  name: '周111113',
                  sapId: '00243',
                  direct: 'Java',
                  boxId: '159',
                },
                {
                  time: '17:00',
                  name: '周111114',
                  sapId: '00244',
                  direct: 'Java',
                  boxId: '160',
                },
              ],
            },
          ],
        },
      ],
    },
  ];
  constructor() {}

  ngOnInit() {}
  moveStart(directname) {
    this.dragCurrentDirect = directname;
  }
  moveEnd(directname) {
    this.dragCurrentDirect = '';
  }
  handleMove(fromData, toData) {
    let oldItem = JSON.parse(JSON.stringify(fromData.data));
    let newItem = JSON.parse(JSON.stringify(toData));
    this.menuContent.forEach((item0) => {
      item0.dateArr.forEach((item1) => {
        item1.etc.forEach((item2) => {
          item2.detail.forEach((item3) => {
            if (oldItem.boxId == item3.boxId) {
              item3.sapId = newItem.sapId;
              item3.name = newItem.name;
            }
            if (newItem.boxId == item3.boxId) {
              item3.sapId = oldItem.sapId;
              item3.name = oldItem.name;
            }
          });
        });
      });
    });
  }
}
